<!-- 新建对话框 -->
<el-dialog
        title="生成代码"
        :visible.sync="dialogVisible"
        width="66%"
        :close-on-click-modal="false"
        :before-close="handleClose">
  <el-form :model="formData" :rules="rules" ref="formRef" label-width="100px">
    <el-row :gutter="20">
      <el-col :span="8">
        <el-form-item label="项目" prop="projectName">
          <el-input v-model="formData.codeJava.projectName" :readonly="true" placeholder="请输入项目"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="表名" prop="tableName">
          <el-input v-model="formData.tableName" placeholder="请输入表名"  @input="handlePasteTableName"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="表说明" prop="tableMean">
          <el-input v-model="formData.tableMean" placeholder="请输入表说明"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="8">
        <el-form-item label="微服务" prop="routeName">
          <el-input v-model="formData.sysinfoMicro.route" :readonly="true" placeholder="请输入微服务"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="模块" prop="module">
          <el-input v-model="formData.module" placeholder="请输入模块"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="分类" prop="entity">
          <el-input v-model="formData.entity" placeholder="请输入实体类"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <!--                                gcc-->
    <el-row :gutter="20">
      <el-col :span="8">
        <el-form-item label="新增记录" prop="status">
          <el-switch
                  v-model="formData.status"
                  :active-value="1"
                  :inactive-value="0"
                  active-color="#13ce66"
                  inactive-color="#ff4949"
          ></el-switch>
        </el-form-item>
      </el-col>
      <el-col :span="16">
        <el-form-item label="java实体类" prop="javaEntity">
          <el-input v-model="formData.javaEntity" placeholder="请输入java实体类"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
    <el-form-item label="代码分类" prop="codeType">
      <el-checkbox-group v-model="codeTypeToForm">
        <el-checkbox v-for="ct in codeTypeList" :label="ct" :key="ct">{{ct}}</el-checkbox>
      </el-checkbox-group>
    </el-form-item>
    <el-form-item label="接口地址" prop="url">
      <el-input v-model="formData.url" placeholder="请输入接口地址"></el-input>
    </el-form-item>
  </el-form>
  <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose">取 消</el-button>
        <el-button type="primary" @click="submitForm">确 定</el-button>
    </span>
</el-dialog>